package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-07-14  08:16
 * @Description:添加汽车类型的实体；
 */
public class LeadCarTypeBean implements Parcelable {

    //列表的编码
    private String dictCode;
    //列表的文字
    private String dictLabel;
    //该公共列表的类型  "dictType": "sys_bank",
//    private transient String dictType;
    //值内容
//    private String dictValue;
    //不执行序列化
    private transient boolean isChecked;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.dictCode);
        dest.writeString(this.dictLabel);
    }

    public void readFromParcel(Parcel source) {
        this.dictCode = source.readString();
        this.dictLabel = source.readString();
    }

    public LeadCarTypeBean() {
    }

    protected LeadCarTypeBean(Parcel in) {
        this.dictCode = in.readString();
        this.dictLabel = in.readString();
    }

    public static final Parcelable.Creator<LeadCarTypeBean> CREATOR = new Parcelable.Creator<LeadCarTypeBean>() {
        @Override
        public LeadCarTypeBean createFromParcel(Parcel source) {
            return new LeadCarTypeBean(source);
        }

        @Override
        public LeadCarTypeBean[] newArray(int size) {
            return new LeadCarTypeBean[size];
        }
    };

    @Override
    public String toString() {
        return "LeadCarTypeBean{" +
                "dictCode='" + dictCode + '\'' +
                ", dictLabel='" + dictLabel + '\'' +
                ", isChecked=" + isChecked +
                '}';
    }

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public String getDictLabel() {
        return dictLabel;
    }

    public void setDictLabel(String dictLabel) {
        this.dictLabel = dictLabel;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }
}
